<html>
<head><meta charset="utf-8"><title>cmake: index out of range · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/cmake.3A.20index.20out.20of.20range.html">cmake: index out of range</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215891995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/cmake%3A%20index%20out%20of%20range/near/215891995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/cmake.3A.20index.20out.20of.20range.html#215891995">(Nov 06 2020 at 19:23)</a>:</h4>
<p>I'm getting an index out of range error from the cmake portion of <code>x.py build</code>:</p>
<div class="codehilite"><pre><span></span><code>-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting AArch64
-- Targeting ARM
-- Targeting Hexagon
-- Targeting MSP430
-- Targeting Mips
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting RISCV
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting WebAssembly
-- Targeting X86
-- Targeting AVR
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 22, in &lt;module&gt;
IndexError: list index out of range
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/rust/build/x86_64-apple-darwin/llvm/build
running: &quot;cmake&quot; &quot;--build&quot; &quot;.&quot; &quot;--target&quot; &quot;install&quot; &quot;--config&quot; &quot;Release&quot; &quot;--&quot; &quot;-j&quot; &quot;4&quot;
</code></pre></div>
<p>I think this has always been there, but it seems like maybe we should be handling this more gracefully?</p>



<a name="215892401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/cmake%3A%20index%20out%20of%20range/near/215892401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/cmake.3A.20index.20out.20of.20range.html#215892401">(Nov 06 2020 at 19:26)</a>:</h4>
<p>It's not our bug, AFAIK</p>



<a name="215892439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/cmake%3A%20index%20out%20of%20range/near/215892439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/cmake.3A.20index.20out.20of.20range.html#215892439">(Nov 06 2020 at 19:26)</a>:</h4>
<p>this is an upstream LLVM problem and I'm not inclined to track it or try to work around it on our end</p>



<a name="215892624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/cmake%3A%20index%20out%20of%20range/near/215892624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/cmake.3A.20index.20out.20of.20range.html#215892624">(Nov 06 2020 at 19:28)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/76408">https://github.com/rust-lang/rust/issues/76408</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>